home *** CD-ROM | disk | FTP | other *** search
- property textDisplay, scrollDirection, ancestor
-
- on new me, paramList
- set scrollDirection to getProp(paramList, #scrollDirection)
- set textDisplay to the textDisplay of the currMenu of GetGlobal(#gTitleObject)
- return me
- end
-
- on TurnOn me
- if scrollDirection = #up then
- repeat while the mouseDown
- ScrollLines(textDisplay, -1)
- end repeat
- else
- repeat while the mouseDown
- ScrollLines(textDisplay, 1)
- end repeat
- end if
- end
-
- on TurnOff me
- end
-
- on dispose me
- set textDisplay to 0
- if objectp(ancestor) then
- dispose(ancestor)
- end if
- set ancestor to 0
- end
-